#用于理解flask中的路由系统

def route(rule,**options):

    def decorator(f):
        f()
        print('this is decorator!')
        return f
    return decorator

@route('/12')
def hello():
    print('this is hello')

f=hello()
f()